class csns::dglustre_client(){
	
	$al9lustrepkg=['e2fsprogs-libs','kmod-lustre-client','lustre-client']

	case $operatingsystem {
	    /AlmaLinux|almalinux/:{


	    package {$al9lustrepkg:
	        ensure => 'installed',
                require => Yumrepo['csnspuppet'],
		}

	    file { '/hpcfs':
 		 ensure => 'directory',
		 owner  => 'root',
		 group  => 'root',
		 mode   => '0755',
		}		

#	    file_line { 'lustre_fstab_entry':
 #		 path => '/etc/fstab',
  #		line => '10.1.231.73@tcp:10.1.231.74@tcp:/hpcfs  /hpcfs  lustre  defaults_netdev 0       0',
  #		match => '^10.1.231.73@tcp:10.1.231.74@tcp:/hpcfs',
#		}

	    mount { '/hpcfs':
       		ensure  => 'mounted',
  		device  => '10.1.231.73@tcp:10.1.231.74@tcp:/hpcfs',
		fstype  => 'lustre',
  	        options => 'defaults_netdev',
                require => [File['/hpcfs'],Yumrepo['csnspuppet']],
		}

	    file { '/dmtestfs':
 		 ensure => 'directory',
		 owner  => 'root',
		 group  => 'root',
		 mode   => '0755',
		}		

	    mount { '/dmtestfs':
       		ensure  => 'mounted',
  		device  => '10.1.231.42@tcp:/dmtestfs',
		fstype  => 'lustre',
  	        options => 'defaults_netdev',
                require => [File['/hpcfs'],Yumrepo['csnspuppet']],
		}
	}
  }


}
